import service from '@/utils/request'

const PressureApi = {
  addPressure: function (data) {
    return service.post('pressure', data)
  },
  deletePressure: function (data) {
    return service.put('pressure/delete', data)
  },
  editPressure: function (data) {
    return service.put('pressure', data)
  },
  listPressure: function (data) {
    return service.get('pressure/page', {params: data })
  },
  getPressureInfo: function (data) {
    return service.get('pressure', {params: data })
  },
  getPressureDetectionList: function (data) {
    return service.get('sugar/list', {params: data })
  },
}

export default PressureApi